import {INCREMENT,REDUCE} from '../constant'

export const increment = data =>({type: INCREMENT, data})
export const reduce = data =>({type: REDUCE, data})
export const incrementAsync = (data,time) =>{
    return (dispatch)=>{
        setTimeout(() => {
           dispatch(increment(data)) 
        }, time);
    }
}